﻿using PSE.Framework.Communication.Configuration.Adapters;
using System.Configuration;
using PSE.Framework.Communication.Configuration.Adapters.Stm;
namespace PSE.Framework.Communication.Configuration.Stm
{
    public class StmInputConfiguration : InputAdapterConfiguration
    {
        [ConfigurationProperty("userName", IsRequired = false)]
        public string UserName
        {
            get
            {
                return (string)base["userName"];
            }
        }

        [ConfigurationProperty("functionary", IsRequired = false)]
        public string Functionary
        {
            get
            {
                return (string)base["functionary"];
            }
        }     

        /// <summary>
        /// Filtro de mensagens, seguindo padrao definido no manual STM
        /// </summary>
        [ConfigurationProperty("filter", IsRequired = false)]
        public string Filter
        {
            get
            {
                return (string)base["filter"];
            }
        }

        [ConfigurationProperty("actions", IsRequired = true)]
        public new StmInputAdapterActionConfigurationCollection Actions
        {
            get
            {
                return (StmInputAdapterActionConfigurationCollection)base["actions"];
            }
        }

    }
}
